#include <iostream>

int main(void) {
  const int footToInchConversionFactor{12};
  const double poundToKilogramConversionFactor{2.2};
  const double inchToMeterConversionFactor{0.0254};

  int heightFeet{}, heightInch{};
  double weightPound{};

  double heightMeters{};
  double weightKilograms{};
  double BMI{};

  std::cout << "Please enter your height: (feet and inch) " << std::endl;
  std::cin >> heightFeet >> heightInch;

  std::cout << "Please enter your weight: (pound) " << std::endl;
  std::cin >> weightPound;

  heightMeters = ((heightFeet * footToInchConversionFactor) + heightInch) *
                 inchToMeterConversionFactor;
  weightKilograms = weightPound * poundToKilogramConversionFactor;

  BMI = weightKilograms / (heightMeters * heightMeters);

  std::cout << "Your height is " << heightFeet << " feet, " << heightInch
            << " inch" << std::endl;
  std::cout << "Your weight is " << weightPound << " pounds" << std::endl;
  std::cout << "Your BMI: " << BMI << std::endl;

  return 0;
}
